-- GENERATED SPELL FOR [Bath'rah the Windwatcher] --


function spell0_6176(pUnit, Event) --@Spirit Totem,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(25000,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_6176', 1, 1)
end

function spell1_6176(pUnit, Event) --@Summon Cyclonian,n/a--
pUnit:FullCastSpellOnTarget(8606,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6176', 10000, 1)
end

function Sorts_6176(pUnit, Event)
local choix_sorts_6176 = math.random(0, 1)
if choix_sorts_6176 == 0 then
pUnit:RegisterEvent('spell0_6176', 1, 1)
end
if choix_sorts_6176 == 1 then
pUnit:RegisterEvent('spell1_6176', 1, 1)
end
end

function mob6176_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6176', math.random(1500, 3000), 1)
end

function mob6176_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6176_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6176_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6176, 1, 'mob6176_Action')
RegisterUnitEvent(6176, 2, 'mob6176_Leave')
RegisterUnitEvent(6176, 3, 'mob6176_Kill')
RegisterUnitEvent(6176, 4, 'mob6176_Die')
